package com.glsc.ngateway.common.base.repo.mysql.gateway.platform.smartbi;

import com.glsc.ngateway.common.base.domain.mysql.gateway.platform.smartbi.SmartBiMenu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface SmartBiMenuRepository extends JpaRepository<SmartBiMenu, String>, JpaSpecificationExecutor<SmartBiMenu> {

    @Query(value = "select max(menu_id) from t_smartbi_menu", nativeQuery = true)
    String findMaxMenuId();
}
